﻿using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace SEPD.CAD.Template.Palette
{
    public partial class TemplatePaletteSetViewModel :BindableBase
    {

        [DllImport("user32.dll", EntryPoint = "SetFocus")]
        public static extern int SetFocus(IntPtr hWnd);


        //当前dll运行目录
        private static readonly string assemblyPath = Assembly.GetExecutingAssembly().Location;
          //string assemblyDir { get; set; }
        //static string assemblyDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\";  //此处会导致窗口初始化错误

        public ICommand TempCommand1 { get; set; }
        public ICommand TempCommand2 { get; set; }
        public ICommand TempCommand3 { get; set; }
        public ICommand TempCommand4 { get; set; }

        public TemplatePaletteSetViewModel()
        {
            PreProccess();

            this.TempCommand1 = new DelegateCommand(TempExecute1);
            this.TempCommand2 = new DelegateCommand(TempExecute2);
            this.TempCommand3 = new DelegateCommand(TempExecute3);
            this.TempCommand4 = new DelegateCommand(TempExecute4);
        }


       

    }
}
